<div class="artCon">
	<div class="bigArt">
		<div id="menuContent" class="menuContent" style="display:none; position: absolute;border: 1px solid #09f;width:313px;overflow:auto;;background-color:#FFFFFF;height:150px;">
			<ul id="treeDemo" class="ztree"></ul>
		</div>
		<form class="form-horizontal" id="mainForm" action="/${orgi}/design/player/resetreport/${reportid!''}.html<#if modelid??>?modelid=${modelid}</#if>" method="post">
        <div class="artMain artOther">
			<#include "selcubeMacro.html"/>
        </div>
        <div class="bottomBg">
            <div class="btnWrap">
                <a href="javascript:$('#mainForm').submit()" class="btnStyle1">保存</a>
                <input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
            </div>
        </div>
		</form>
    </div>
</div>
<script type="text/javascript">
	var setting = {
		view: {
			dblClickExpand: false
		},
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			onClick: onClick
		}
	};
	var zNodes =[
		{ id:'0', pId:0, name:"公共文件夹", open:true, icon:"/assets/images/icon-file-closed.png",click:"loadURL('/${orgi}/design/player/cubedic/0.html','#cubeList',function(){hideMenu();})"}
		<#if cubePackageList??>
		<#list cubePackageList as cubePackage>
		,{ id:"${cubePackage.id!''}", pId:"${cubePackage.parentid!''}", name:"${cubePackage.name!''}", icon:"/assets/images/icon-file-closed.png",click:"loadURL('/${orgi}/design/player/cubedic/${cubePackage.id!''}.html','#cubeList',function(){hideMenu();})"}
		</#list>
		</#if>
	 ];
	 $(document).ready(function(){
		$.fn.zTree.init($("#treeDemo"), setting, zNodes);
	});
</script>